const align = 'center'
const width = ''
const isLink = true

export const obtainTableOption = {
  name: 'obtainTableOption', // 得到授信机构表
  columns: [{
    prop: 'organizationName',
    label: '机构名称',
    align,
    fixed: true,
    width
  }, {
    prop: 'organizationId',
    label: '机构编号',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgTypeName',
    label: '机构类型',
    align,
    fixed: true,
    width: '80'
  }, {
    prop: 'getFavCreditLimit',
    label: '总额度',
    align,
    width: '120',
    isLink,
    sortable: 'custom'
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '已用额度',
    align,
    width: '120',
    isLink,
    sortable: 'custom'
  }, {
    prop: 'residueGetFavCreditLimit',
    label: '剩余额度',
    align,
    width: '120',
    sortable: 'custom'
  }, {
    prop: 'accumUsedGetFavCreditLimit',
    label: '累计已使用得到授信优惠金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGetFavCreditLimit',
    label: '累计已结算得到授信优惠金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedUnsettledGetFavCreditLimit',
    label: '累计未结算得到授信优惠金额',
    align,
    width,
    isLink
  }]
}

export const foreignTableOption = {
  name: 'foreignTableOption', // 得到授信机构表
  columns: [{
    prop: 'organizationName',
    label: '机构名称',
    align,
    fixed: true,
    width
  }, {
    prop: 'organizationId',
    label: '机构编号',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgTypeName',
    label: '机构类型',
    align,
    fixed: true,
    width: '80'
  }, {
    prop: 'getFavCreditLimit',
    label: '总额度',
    align,
    width: '120',
    isLink,
    sortable: 'custom'
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '已用额度',
    align,
    width: '120',
    isLink,
    sortable: 'custom'
  }, {
    prop: 'residueGetFavCreditLimit',
    label: '剩余额度',
    align,
    width: '120',
    sortable: 'custom'
  }, {
    prop: 'accumUsedGetFavCreditLimit',
    label: '累计已使用对外授信优惠金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGetFavCreditLimit',
    label: '累计已结算对外授信优惠金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedUnsettledGetFavCreditLimit',
    label: '累计未结算对外授信优惠金额',
    align,
    width,
    isLink
  }]
}

export default {
  obtainTableOption,
  foreignTableOption
}
